package com.hansming.bss.modules.sfc.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.hansming.bss.common.persistence.DataEntity;
import com.hansming.bss.modules.sys.entity.User;

/**
 * 线路Entity
 * @author Hansming
 * @version 2017-09-16
 */
public class Line extends DataEntity<Line>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String 				num;						//线路编号	
	private String 				title;						//线路标题		
	private String 				city;						//出发城市	
	private String 				showurl;					//显示图片
	private String 				type;						//线路类型
	private String 				starttime;					//出团日期
	private String				idea;							//标签“热门，优惠”
	private int 				days;						//行程天数
	private int					in_menu;					//是否在首页城市推荐中
	private int					in_nav;						//是否在首页的导航栏中
	private int 				satisfic;					//满意度（需求操作平台可以自己修改）	
	private int					sort;						//综合评分（用于综合评分的排序）
	private int 				recommend;					//推荐数	
	private BigDecimal 			price;						//价格	
	private int					score;						//评分
	private int 				sellsnum;					//销量
	private User				user;						//操作者					
	private String				showflag;					//前台显示或否	
	private LineExtr			lineextr;					//线路的细节信息
	private	String				inminiapp;					//是否显示在小程序的首页
	private	String				features;					//特征
	private String				characteristic;				//特色
	private  String 			pathway;						//线路列表页途径信息
	
	public Line(String id){
		super(id);
		this.in_menu = default_hide;
		this.in_nav = default_hide;
		this.satisfic = 100;
	}
	
	

	public Line(){
		super();
		this.in_menu = default_hide;
		this.in_nav = default_hide;
		this.satisfic = 100;
	}
	
	
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	public int getSatisfic() {
		return satisfic;
	}

	public int getRecommend() {
		return recommend;
	}

	public void setRecommend(int recommend) {
		this.recommend = recommend;
	}

	
	@Length(min=0, max=255)
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}




	public void setSatisfic(int satisfic) {
		this.satisfic = satisfic;
	}
	
	@Length(min=0, max=255)
	public String getShowurl() {
		return showurl;
	}

	public void setShowurl(String showurl) {
		this.showurl = showurl;
	}
	


	public int getIn_menu() {
		return in_menu;
	}

	public void setIn_menu(int in_menu) {
		this.in_menu = in_menu;
	}

	public int getIn_nav() {
		return in_nav;
	}

	public void setIn_nav(int in_nav) {
		this.in_nav = in_nav;
	}


	public String getStarttime() {
		return starttime;
	}


	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}


	public int getDays() {
		return days;
	}


	public void setDays(int days) {
		this.days = days;
	}


	public int getScore() {
		return score;
	}


	public void setScore(int score) {
		this.score = score;
	}


	public int getSellsnum() {
		return sellsnum;
	}


	public void setSellsnum(int sellsnum) {
		this.sellsnum = sellsnum;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public String getShowflag() {
		return showflag;
	}


	public void setShowflag(String showflag) {
		this.showflag = showflag;
	}


	public LineExtr getLineextr() {
		return lineextr;
	}


	public void setLineextr(LineExtr lineextr) {
		this.lineextr = lineextr;
	}


	public int getSort() {
		return sort;
	}


	public void setSort(int sort) {
		this.sort = sort;
	}



	public String getInminiapp() {
		return inminiapp;
	}



	public void setInminiapp(String inminiapp) {
		this.inminiapp = inminiapp;
	}



	public String getFeatures() {
		return features;
	}



	public void setFeatures(String features) {
		this.features = features;
	}



	public String getCharacteristic() {
		return characteristic;
	}



	public void setCharacteristic(String characteristic) {
		this.characteristic = characteristic;
	}



	public String getIdea() {
		return idea;
	}



	public void setIdea(String idea) {
		this.idea = idea;
	}



	public String getPathway() {
		return pathway;
	}



	public void setPathway(String pathway) {
		this.pathway = pathway;
	}
	
	
	
}
